//
//  WTHttpRequest.h
//  AI
//
//  Created by awifi on 8/1/18.
//  Copyright © 2018年 zjhc. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface WTHttpRequest : NSObject
//一般的post请求
+(void)requestJsonPostWithUrlStr:(NSString*)urlStr params:(NSDictionary*)params onComplete:(void (^)(NSError* error,NSDictionary* resultJson))onComplete;
//含有表单的文件上传
+(void)requestMultipartFileJsonPostWithUrlStr:(NSString*)urlStr params:(NSDictionary*)params onComplete:(void (^)(NSError* error,NSDictionary* resultJson))onComplete;
//Get请求
+(void)requestJsonGetWithUrlStr:(NSString *)urlStr params:(NSDictionary*)params onComplete:(void (^)(NSError* error,NSDictionary* resultJson))onComplete;
//PUT请求
+(void)requestJsonPutWithUrlStr:(NSString*)urlStr params:(NSDictionary*)params onComplete:(void (^)(NSError* error,NSDictionary* resultJson))onComplete;
//requestAuthCodeGetWithUrlStr

//获取验证码专用请求
+(void)requestAuthCodeGetWithUrlStr:(NSString *)urlStr params:(NSDictionary*)params onComplete:(void (^)(NSError* error,NSDictionary* resultJson))onComplete;

@end
